package dswitch2;

/**
 * Created by: jason
 * Date: 2012-08-06
 */
public class GetAvailTaskLaunching {
    public static void main(String[] args) {
        /*try {
            long count = 99999999999999999L;
            for (long i = 0; i < count; i++) {
                execute();
                if (i % 500 == 0) {
                    Thread.sleep(1000);
                }
            }
        } catch (InterruptedException e) {
            e.printStackTrace();
        }*/
        new Thread(new GetAvailTask()).start();
    }

    private static void execute() {
        int count = 100;
        for (int i = 0; i < count; i++) {
            new Thread(new GetAvailTask()).start();
        }
    }
}
